package text;

public class text3 {
    public static void main(String[] args) {
        String str1 = "1234";
        String str2 = "123456";
        int t1 = 0;
        int t2 = 0;
        for (int i = 0; i < str1.length(); i++) {
            t1 = t1 * 10 + (str1.charAt(i) - '0');
        }
        for (int i = 0; i < str2.length(); i++) {
            t2 = t2 * 10 + (str2.charAt(i) - '0');
        }
        System.out.println(t1 * t2);
    }
}
